x86/svm: silently drop writes to SYSCFG and related MSRs
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 7 Sep 2020 08:38:00 +0000 (10:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 7 Sep 2020 08:38:00 +0000 (10:38 +0200)
commitf5b44269fc734474f3272a22ba9d426d234ed460
tree7432e418e0923e31eff06fc7e81b8a24ccb51f52
parent2454fa428d0b0d1705b8395db7674426ebf182aa
x86/svm: silently drop writes to SYSCFG and related MSRs

The SYSCFG, TOP_MEM1 and TOP_MEM2 MSRs are currently exposed to guests
and writes are silently discarded. Make this explicit in the SVM code
now, and just return default constant values when attempting to read
any of the MSRs, while continuing to silently drop writes.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/svm.c